package com.qdlc.p2p.quartz.job;

import javax.annotation.Resource;

import com.qdlc.p2p.biz.service.ExperienceService;
import com.qdlc.p2p.biz.service.UpRateService;
import com.qdlc.p2p.biz.service.UserRedEnvelopeService;
import com.qdlc.p2p.quartz.AbstractJob;

/**
 * 红包过期作废
 * 体验券过期作废
 * 加息券过期作废
 *
 * @author wuaj
 * @version 1.1.0.0
 * @since 2016年03月11日
 */
public class ExpireDispose extends AbstractJob {

    @Resource
    private UserRedEnvelopeService userRedEnvelopeService;

    @Resource
    private ExperienceService experienceService;

    @Resource
    private UpRateService upRateService;

    @Override
    protected void process() {
        // 红包过期处理
        userRedEnvelopeService.redEnvelopeExpireDispose();

        // 体验券过期处理
        experienceService.experienceExpiredDispose();

        // 加息券过期处理
        upRateService.rateInterestExpiredDispose();
    }
}